<!DOCTYPE html>
<html>
    <head>
        <title>首页</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <!-- Bootstrap -->
        <link href="/public/logistics/css/bootstrap.min.css" rel="stylesheet" media="screen">
        <link href="/public/logistics/css/bootstrap-theme.min.css" rel="stylesheet" media="screen">

        <!-- Bootstrap Admin Theme -->
        <link href="/public/logistics/css/bootstrap-admin-theme.css" rel="stylesheet" media="screen">

        <!-- Vendors -->
        <link href="/public/logistics/vendors/easypiechart/jquery.easy-pie-chart.css" rel="stylesheet" media="screen">
        <link href="/public/logistics/vendors/easypiechart/jquery.easy-pie-chart_custom.css" rel="stylesheet" media="screen">

        <link href="/public/logistics/vendors/bootstrap-datepicker/css/datepicker.css" rel="stylesheet" media="screen">
        <link href="/public/logistics/css/datepicker.fixes.css" rel="stylesheet" media="screen">
        <link href="/public/logistics/vendors/uniform/themes/default/css/uniform.default.min.css" rel="stylesheet" media="screen">
        <link href="/public/logistics/css/uniform.default.fixes.css" rel="stylesheet" media="screen">
        <link href="/public/logistics/vendors/chosen.min.css" rel="stylesheet" media="screen">
        <link href="/public/logistics/vendors/bootstrap-wysihtml5-rails-b3/vendor/assets/stylesheets/bootstrap-wysihtml5/core-b3.css" rel="stylesheet" media="screen">
        <link href="/public/logistics/css/message.css" rel="stylesheet" media="screen">
		<link href="/public/logistics/css/spop.css" rel="stylesheet" media="screen">

        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
           <script type="text/javascript" src="/public/logistics/js/html5shiv.js"></script>
           <script type="text/javascript" src="/public/logistics/js/respond.min.js"></script>
        <![endif]-->
    </head>
	
    <body class="bootstrap-admin-with-small-navbar">
		<nav class="navbar navbar-default navbar-inverse navbar-fixed-top " role="navigation">
			<div class="container">
				<div class="row">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="#">盛汇农产物流平台管理</a>
					</div>
					<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
						<ul class="nav navbar-nav">
							<li class="active"><a href="#">首页</a></li>
							<li ><a href="#">11</a></li>			  
							<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">下拉菜单<b class="caret"></b></a>
							<ul class="dropdown-menu">
								<li><a href="#">Action</a></li>
								<li><a href="#">Another action</a></li>
								<li><a href="#">Something else here</a></li>
								<li class="divider"></li>
								<li><a href="#">Separated link</a></li>
								<li class="divider"></li>
								<li><a href="#">One more separated link</a></li>
							</ul>
							</li>
						</ul>
						<form class="navbar-form navbar-left" role="search">
							<div class="form-group">
								<input type="text" class="form-control" placeholder="请输入内容">
							</div>
							<button type="submit" class="btn btn-default">搜索</button>
						</form>
						<ul class="nav navbar-nav navbar-right">
							<li><a href="http://ncp.shenghuigo.com" target="_blank">农产品交易网</a></li>
							<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">{$member_info['company_name']}<b class="caret"></b></a>
							<ul class="dropdown-menu">
							<li><a href="{:U("info")}">基础信息</a></li>
							<li><a href="{:U("account")}">账户中心</a></li>
							<li class="divider"></li>
							<li><a href="{:U('public/loginout')}">退出登录</a></li>
							</ul>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</nav>
		
		<div class="container">
            <div class="row">
                <div class="col-md-2 bootstrap-admin-col-left">
					<ul class="nav navbar-collapse collapse bootstrap-admin-navbar-side">
						<li <eq name="Think.CONTROLLER_NAME" value="Index"> class="active" </eq>>
							<a href="{:U('Index/index')}"><i class="glyphicon glyphicon-chevron-right"></i> 首页</a>
						</li>
						<li >
							<a href="about.html"><i class="glyphicon glyphicon-chevron-right"></i> 关于我们</a>
						</li>
					
						<!--<li <eq name="Think.CONTROLLER_NAME" value="BusinessCenter"> class="active" </eq>>
							<a href="{:U('BusinessCenter/index')}"><i class="glyphicon glyphicon-chevron-right"></i> 商户中心</a>
						</li>-->
					
						<li>
							<a href="#"><span class="badge pull-right">731</span> 订单</a>
						</li>
						<li>
						    <a href="#systemSetting" class="nav-header collapsed" data-toggle="collapse">
                            <i class="glyphicon glyphicon-cog"></i>
								抢单大厅
								   <span class="pull-right glyphicon glyphicon-chevron-down"></span>
							</a>
							<ul id="systemSetting" class="nav nav-list navbar-collapse collapse bootstrap-admin-navbar-side secondmenu <?php if($Think.CONTROLLER_NAME=='Order' || $Think.CONTROLLER_NAME == 'Needs'):?>  in <?php endif;?>" style="height: auto;">
								<li <eq name="Think.CONTROLLER_NAME" value="Needs"> class="active" </eq>>
									<a href="{:U('Needs/index')}"><i class="glyphicon glyphicon-chevron-right"></i> 需求列表</a>
								</li>
								<li <eq name="Think.CONTROLLER_NAME" value="Order"> class="active" </eq>>
									<a href="{:U('Order/index')}"><i class="glyphicon glyphicon-chevron-right"></i> 我的订单</a>
								</li>
							</ul>
						</li>
						<li>
							<a href="#setting" class="nav-header collapsed" data-toggle="collapse">数据作战室</a>
						</li>
						<li>
							<a href="#setting" class="nav-header collapsed" data-toggle="collapse">
							<i class="glyphicon glyphicon-cog"></i>
								基本信息
								<span class="pull-right glyphicon glyphicon-chevron-down"></span>
							</a>
							<ul id="setting" class="nav nav-list navbar-collapse collapse bootstrap-admin-navbar-side secondmenu" style="height: auto;">
								<li>
									<a href="{:U("index/info")}"><i class="glyphicon glyphicon-chevron-right"></i> 公司信息</a>
								</li>
								<li>
									<a href="{:U("index/account")}"><i class="glyphicon glyphicon-chevron-right"></i> 账户中心</a>
								</li>
								<li <eq name="Think.CONTROLLER_NAME" value="BusinessCenter"> class="active" </eq>>
									<a href="{:U('BusinessCenter/index')}"><i class="glyphicon glyphicon-chevron-right"></i> 认证中心</a>
								</li>
								<li>
									<a href="{:U("index/savepass")}"><i class="glyphicon glyphicon-chevron-right"></i> 密码修改</a>
								</li>
							</ul>
						</li>
					</ul>
				</div>
				<block name="content"></block>
            </div>
			<div class="row">
				<hr>
				<footer role="contentinfo">
					<p>&copy; Copyright 2018 All Rights dot Com Limited 版权所有。  <a href="http://www.shenghuigo.com/" target="_blank" title="盛汇购电商">盛汇购电商</a> </p>
				</footer>
			</div>
        </div>
		
		<script type="text/javascript" src="/public/logistics/js/jquery-2.0.3.min.js"></script>
		<script type="text/javascript" src="/public/logistics/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="/public/logistics/js/twitter-bootstrap-hover-dropdown.min.js"></script>
		<script type="text/javascript" src="/public/logistics/vendors/easypiechart/jquery.easy-pie-chart.js"></script>
		<script type="text/javascript" src="/public/logistics/vendors/uniform/jquery.uniform.min.js"></script>
		<script type="text/javascript" src="/public/logistics/vendors/chosen.jquery.min.js"></script>
		<script type="text/javascript" src="/public/logistics/vendors/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
		<script type="text/javascript" src="/public/logistics/vendors/bootstrap-wysihtml5-rails-b3/vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5.js"></script>
		<script type="text/javascript" src="/public/logistics/vendors/bootstrap-wysihtml5-rails-b3/vendor/assets/javascripts/bootstrap-wysihtml5/core-b3.js"></script>
		<script type="text/javascript" src="/public/logistics/vendors/twitter-bootstrap-wizard/jquery.bootstrap.wizard-for.bootstrap3.js"></script>
		<script type="text/javascript" src="/public/logistics/vendors/boostrap3-typeahead/bootstrap3-typeahead.min.js"></script>
		<script type="text/javascript" src="/public/logistics/js/common.js"></script>
        <script type="text/javascript" src="/public/logistics/js/message.js"></script>
		<script type="text/javascript" src="/public/logistics/js/spop.js"></script>
		<script>
			setInterval(function(){
				$.post("{:U("Needs/newtask")}" , function(data){
					if(data>0){
						spop({
							template: '<a href="{:U("Needs/index")}">任务大厅有'+data+'条需求单子信息没有查看，请注意查看。</a>',
							position  : 'bottom-right', 
							style :'info',
							autoclose: 8000,
						});
					}
					
				},'json');
			},8000)
		</script>
		<block name="script"></block>
	</body>
</html>